let initData = {
    data: []
}

let homeReducer = (state = initData, {type, payload}) => {

    switch(type) {

        case 'GET_DATA':
            return {
                ...state,
                data: payload
            }

        default:
            return {
                ...state
            }
    }

}

export default homeReducer